package com.hsh;

import java.util.Timer;
import java.util.TimerTask;

public class test {
    public static void main(String[] args) {
        final Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println(1);
            }
        }, 1000);
    }
}
